from sqlalchemy.ext.declarative import declarative_base
from exts import db

Base = declarative_base()
metadata = Base.metadata


class User(db.Model):
    __tablename__ = "user"
    sno = db.Column(db.String(), primary_key=True)
    email = db.Column(db.String())
    isRss = db.Column(db.Integer)

    def __init__(self, email, isRss):
        self.email = email
        self.isRss = isRss

    def __repr__(self):
        return '<User %r>' % self.sno
